import {request} from './request';
import api from '@/conf/api.js'


export function getFollow() {
  return request({
    url: api.follow,
	method:"GET",
	header:{
		AUTHORIZATION:api.token
	}
  })
}
export function getFollowAdd(fid) {
  return request({
    url: api.follow_add+fid+"/",
	method:"POST",
	header:{
		AUTHORIZATION:api.token
	}
  })
}
export function getFavorRecord(iid,status) {
  return request({
    url: api.favor_record+iid+"/",
	method:"POST",
	header:{
		AUTHORIZATION:api.token
	},
	data:{
		status
	}
  })
}
export function getSearch(data,type) {
  return request({
    url: api.search,
	method:"GET",
	header:{
		AUTHORIZATION:api.token
	},
	data:{
		data:data,
		type:type
	}
  })
}

